package com.zz.ecommerce.common.bean.insp.db.declaration;

import com.zz.bundles.cache.dict.DictTag;
import com.zz.ecommerce.common.bean.insp.xml.declaration.FADeclHead;
import com.zz.ecommerce.common.constants.DictConstants;
import com.zz.ecommerce.utils.SqlType;

/**
 * Created by admin on 2016/3/17.
 */
public class TDeclareFormHeadInsp extends FADeclHead {

    private String id;
    private String messageType;
    private String sendoffice;
    private String receiveoffice;
    private String poserialno;

    @SqlType(type = "date", format = "yyyy-MM-dd hh24:mi:ss")
    private String createTime;

    private String relateDeclCustId;

    private String status;

    @SqlType(type = "date", format = "yyyy-MM-dd hh24:mi:ss")
    private String statusTime;

    private String operId;

    private String orgId;

    @SqlType(inTable = false)
    private String decldateStart;

    @SqlType(inTable = false)
    private String decldateEnd;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRelateDeclCustId() {
        return relateDeclCustId;
    }

    public void setRelateDeclCustId(String relateDeclCustId) {
        this.relateDeclCustId = relateDeclCustId;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusDisplay() {
        return DictTag.dictItem("DEC_STATUS_K_INSP", status);
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusTime() {
        return statusTime;
    }

    public void setStatusTime(String statusTime) {
        this.statusTime = statusTime;
    }

    public String getOperId() {
        return operId;
    }

    public void setOperId(String operId) {
        this.operId = operId;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getSendoffice() {
        return sendoffice;
    }

    public void setSendoffice(String sendoffice) {
        this.sendoffice = sendoffice;
    }

    public String getReceiveoffice() {
        return receiveoffice;
    }

    public void setReceiveoffice(String receiveoffice) {
        this.receiveoffice = receiveoffice;
    }

    public String getPoserialno() {
        return poserialno;
    }

    public void setPoserialno(String poserialno) {
        this.poserialno = poserialno;
    }

    public String getPkgscodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.V_PACKAGETYPE, pkgscode, "ITEMCODE", "ITEMNAME");
    }

    public String getOrigincurrencyDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_CURRENCY_E, origincurrency, "CODE_I", "NAME_I");
    }

    public String getPortcodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_ARRIVATE_PORT_E, pkgscode, "CODE_I", "NAME_I");
    }

    public String getOrigincodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_TRADE_COUNTRY_E, origincode, "CODE_I", "NAME_I");
    }

    public String getTranstypecodeDisplay() {
        return DictTag.getCargoParamVal(DictConstants.S_TRANSTYPE_E, transtypecode, "CODE_I", "NAME_I");
    }

    public String getDecldateStart() {
        return decldateStart;
    }

    public void setDecldateStart(String decldateStart) {
        this.decldateStart = decldateStart;
    }

    public String getDecldateEnd() {
        return decldateEnd;
    }

    public void setDecldateEnd(String decldateEnd) {
        this.decldateEnd = decldateEnd;
    }
}
